package com.techsoul.module.accounting.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.module.accounting.pojo.param.PromotionDiscountPriceSaveParam;
import com.techsoul.module.accounting.pojo.param.PromotionDiscountPriceSearchParam;
import com.techsoul.module.accounting.pojo.vo.PromotionDiscountPriceVo;
import com.techsoul.module.goods.pojo.entity.Spu;
import com.techsoul.module.pms.pojo.entity.GoodsGroup;
import com.techsoul.module.pms.pojo.entity.GoodsSupplier;
import com.techsoul.module.goods.pojo.entity.Sku;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 促销活动的采购结算价格配置 Service接口
 * 
 * @author liuen
 * @date 2021-04-11
 */
public interface IPromotionDiscountPriceService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(PromotionDiscountPriceSaveParam params);

    /**
     * 新增
     * @param params
     * @return
     */
    String insertData(PromotionDiscountPriceSaveParam params);
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(PromotionDiscountPriceSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    PromotionDiscountPriceVo findById(String id);
    /**
     * 列表
     * @param params
     * @return
     */
    List<PromotionDiscountPriceVo> findAllList(PromotionDiscountPriceSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<PromotionDiscountPriceVo> findAllList(PromotionDiscountPriceSearchParam params, Integer current, Integer pageSize);

    /**
     * 列表
     * @param params
     * @return
     */
    List<PromotionDiscountPriceVo> findAll(PromotionDiscountPriceSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<PromotionDiscountPriceVo> findAll(PromotionDiscountPriceSearchParam params, Integer current, Integer pageSize);
    /**
     * 导入模板
     */
    String importTemplate();

    /**
     * 导入
     * @param file
     * @return
     */
    String importData(String storeId, String mallCustNo,String actType,  MultipartFile file);

    Spu generateNewSpu(PromotionDiscountPriceVo promotionDiscountPriceVo);
    Spu generateNewSpu(PromotionDiscountPriceSaveParam promotionDiscountPriceVo);
    GoodsSupplier generateNewGoodsSupplier(PromotionDiscountPriceVo promotionDiscountPriceVo, String supplierNo, String supplierName, String spuid, String storeId, String storeName);

    GoodsGroup generateNewGoodsGroup(PromotionDiscountPriceVo promotionDiscountPriceVo);
    /**
     * 生成商品SKU
     * @param promotionDiscountPriceVo
     * @return
     */
    Sku generateNewSku(PromotionDiscountPriceVo promotionDiscountPriceVo, Spu spu);
    Sku generateNewSku(PromotionDiscountPriceSaveParam promotionDiscountPriceVo, Spu spu);
    PromotionDiscountPriceVo removeSpecialCharPromotionDiscountPriceVo(PromotionDiscountPriceVo input);
    PromotionDiscountPriceSaveParam removeSpecialCharPromotionDiscountPriceVo(PromotionDiscountPriceSaveParam input);


}
